<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>首页</title>
</head>

<body>
    {% if name %}
    <div>{{ name }} 同学，<a href="/logout">退出</a></div>
    {% else %}
    <div><a href="/login">请登录</a></div>
    <div><a href="/register">注册</a></div>
    {% endif %}
</body>

</html>